package com.young.springdemo.service.director;

public class JarDecorator extends Decorator {

    public JarDecorator(Phone phone) {
        super(phone);
    }
    public  void ring(){
        super.ring();
        jar();
    }

    private void jar() {
        System.out.println("手机震动功能");
    }
}
